From ac4148f21968cabdc265403297dbf8d04955fff7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 3 Oct 2008 09:37:35 +0100 Subject: [PATCH] xend: Allow guest write access to /local/domain/x/memory Required for xenballoond, and tools do not need to trust any values written in that subdirectory. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index da1cd82485..77b2598b1c 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1303,7 +1303,7 @@ class XendDomainInfo: t.mkdir() t.set_permissions({'dom' : self.domid, 'read' : True}) t.write('vm', self.vmpath) - for i in [ 'device', 'control', 'error' ]: + for i in [ 'device', 'control', 'error', 'memory' ]: t.mkdir(i) t.set_permissions(i, {'dom' : self.domid}) -- 2.30.2